function nonmodalfigs
% nonmodalfigs  - sets all figures to non-modal mode
%
% FORMAT:       nonmodalfigs;
%
% No input/output fields.

% Version:      v0.7b
% Build:        7090119
% Date:         Sep-01 2007, 7:29 PM CEST
% Author:       Jochen Weber, Brain Innovation, B.V., Maastricht, NL
% URL / Info:   http://wiki.brainvoyager.com/BVQXtools

%  show all figures!
try
    ssh = get(0, 'ShowHiddenHandles');
    set(0, 'ShowHiddenHandles', 'on');
catch
    ssh = false;
end

%  get figures and set window style to normal
try
    f = findobj('Type', 'figure');
    set(f, 'WindowStyle', 'normal');
catch
    % do nothing
end

% reset ShowHiddenHandles setting
try
    set(0, 'ShowHiddenHandles', ssh);
catch
    % do nothing
end
